package com.newlink.building.userinfo.mvp.model

import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.Base_ChangePasswordBean
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_AccountInformationChangePasswordContract
import io.reactivex.Observable

/**
 * @author wangyang
 * @date 2022/10/27
 * @description 我的——账户信息——修改密码页面的Model
 */
class Module_UserInfo_AccountInformationChangePasswordModel : BaseModel(),
    Module_UserInfo_AccountInformationChangePasswordContract.Model {

    override fun changePassword(
        token: String,
        changePasswordBean: Base_ChangePasswordBean
    ): Observable<HttpResult<String?>> {
        return Base_RetrofitHelper.service.changePassword(token, changePasswordBean)
    }
}